import request from '@/router/axios';

export const getList = (current, size, params) => {
  return request({
    url: '/api/ManageNotification/GetNotificationList',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    }
  })
}

export const getDetail = (id) => {
  return request({
    url: '/api/ManageNotification/GetNotificationInfo',
    method: 'get',
    params: {
      id
    }
  })
}

export const remove = (row) => {
  return request({
    url: '/api/ManageNotification/DelNotification',
    method: 'post',
    data:row
  })
}

export const add = (row) => {
  return request({
    url: '/api/ManageNotification/AddOrEditNotification',
    method: 'post',
    data: row
  })
}

export const update = (row) => {
  return request({
    url: '/api/ManageNotification/AddOrEditNotification',
    method: 'post',
    data: row
  })
}

export const selectImgId = (params) => {
  return request({
    url: '/api/ManageHomeWork/GetJobFileIdByUil',
    method: 'get',
    params: {
      ...params,
    }
  })
}

// 获取下发范围
export const getTreeByTeacherOrStudentSelect = (params) => {
  return request({
    url: '/api/ManageNotification/GetTreeByTeacherOrStudentSelect',
    method: 'get',
    params: {
      ...params,
    }
  })
}







